﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;

using ZhimeiSoft.CharmManager.DOL;
using ZhimeiSoft.CharmManager.Server.DAL.Interface;
using ZhimeiSoft.CharmManager.Server.BLL.Interface;
using ZhimeiSoft.CharmManager.Server.Factory;

namespace ZhimeiSoft.CharmManager.Server.BLL
{
    public class CustomerServiceItemReservationTimeBLL : ICustomerServiceItemReservationTimeBLL
    {
        ICustomerServiceItemReservationTimeDAL detailDal;
        public CustomerServiceItemReservationTimeBLL()
        {
            detailDal = BaseDalFactory.CreateCustomerServiceItemReservationTimeDal();
        }

        public void InsertCustomerServiceItemDetail(DBEntityCustomerServiceItemReservationTime detail)
        {
            detailDal.InsertCustomerServiceItemDetail(detail);
        }

        public void UpdateCustomerServiceItemDetail(DBEntityCustomerServiceItemReservationTime detail)
        {
            detailDal.UpdateCustomerServiceItemDetail(detail);
        }

        public void DeleteCustomerServiceItemDetail(string sFilter)
        {
            detailDal.DeleteCustomerServiceItemDetail(sFilter);
        }

        public DataSet QueryCustomerServiceItemDetail(string sFilter)
        {
            return detailDal.QueryCustomerServiceItemDetail(sFilter);
        }

        public void SubmitCustomerServiceItmeReservationTime(DataSet ds)
        {
            detailDal.SubmitCustomerServiceItmeReservationTime(ds);
        }
    }
}
